﻿<Window x:Class="SsTool.Core.Windows.OrgWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="OrgWindow" Height="300" Width="300" SizeToContent="WidthAndHeight"
        WindowStartupLocation="CenterScreen">
    <Grid>
        <StackPanel>
            <Label Content="父节点"/>
            <TextBox Name="_ctlEditParent" IsReadOnly="True" Text="{Binding Path=Parent.Caption}" Width="300"/>
            <Label Content="编号"/>
            <TextBox Name="_ctlEditCode" Text="{Binding Path=Code,Mode=TwoWay}"/>
            <Label Content="名称"/>
            <TextBox Name="_ctlEditCaption" Text="{Binding Path=Caption,Mode=TwoWay}"/>
            <Label Content="类型"/>
            <ComboBox Name="_ctlListType">
                <ComboBoxItem Content="公司"/>
                <ComboBoxItem Content="部门"/>
                <ComboBoxItem Content="岗位"/>
            </ComboBox>
            <Label Content="排序号"/>
            <TextBox Name="_ctlEditOrderIndex" Text="{Binding Path=OrderIndex,Mode=TwoWay}"/>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                <Button Name="_ctlBtnSubmit" Content="提交" Click="_ctlBtnSubmit_Click" />
                <Button Name="_ctlBtnCancel" Content="取消" Click="_ctlBtnCancel_Click" />
            </StackPanel>
        </StackPanel>
    </Grid>
</Window>
